#include <iostream>

using namespace std;

int main()
{
	float degree;
	float m_degree;
	float s_degree;
	float res;
	
	cout << "Enter a latitude in degree, minutes , and seconds:" << endl;
	cout << "degree: ";
	cin >> degree;
	cout << "m_degree: ";
	cin >> m_degree;
	cout << "s_degree: ";
	cin >> s_degree;
	
	res = degree + m_degree / 60 + s_degree / (60 * 60);
	cout << "Now, show the result: " << res << endl;
	
	return 0;
}